package com.example.mallproduct.api.service;

import com.example.mallproduct.api.domain.Product;

/** @author yangtao */
public interface ProductService {
  Product findByPid(Integer pid);

  /**
   * 扣减商品库存
   *
   * @param pid
   * @param num
   */
  void reduceInventory(Integer pid, int num);
}
